//zed
// - currently has a dylan/moo -ish syntax
// - the parens around the expression could change to
//   a more ruby/lua -ish syntax, with optional do/then.

print("*** start\n")

var x = 10
var y = 20


// if has elif clauses
// and/or are aliases for &&/||
if (x == -99)
    print("FAIL")
elif (x == 10 and y > 15)
    print("OK")
elif (x == -99 or y > -99)
    print("FAIL")
else
    print("FAIL")
end
    
    
// not as alias for !
var b = false;
print(!b)
print(not b)

// fn as alias for function
fn times2(i)
    return i * 2
end

var z = 1
while (z <= 5)
    print(z + " : " + times2(z++))
end

print("\n*** end ");
